#ifndef _OI_LT360BASE_PROFILEDATABASE_HPP_
#define _OI_LT360BASE_PROFILEDATABASE_HPP_

#include "OiLT360Base.hpp"

namespace Oi
{
    namespace Appl
    {
        class OI_LT360BASE_API ProfileDatabase : public QObject
        {
            Q_OBJECT
        public:
            ProfileDatabase(QObject* parent, const QString& path);

        public:
            ~ProfileDatabase();

        public:
            void addItem(const QDateTime& timestamp, const LTBase::MeasurementSnapShot& snapshot);
            void deleteItem(const QDateTime& timestamp);
            QList<QString> searchItems(const QDateTime& startTime, const QDateTime& endTime);

        private:
            OI_DISABLE_COPY(ProfileDatabase);
            OI_DECLARE_IMPL(ProfileDatabase);
        };
    }
}

#endif